Integrating script files or script code into the procedure sequence
You can call a script file or script code at each point of the procedure sequence.
Note: Only actions that would disrupt current running procedures, for example, LoadVersion, are not permitted. |
1. From the Calculate menu, choose Procedure sequence.
The Procedure sequence window opens.
2. Click the Create button.
The Procedure window opens.
3. Select Miscellaneous > Run script.
Note: You will find scripts integrated as add-ins in Visum in the AddIn folder (Embedding add-ins automatically via a project directory). |
4. Confirm with OK.
The Run script procedure is inserted into the procedure sequence.
Integrate script file
1. In the row of the created procedure, click the button in the row Variant/File.
The Open script window opens.
2. Select the desired script file.
Note: By default, you can use script files with the extensions *.vbs, *.js, *.pys or *.py. You can only use script files created with Ruby, Perl, or TCL script environments if the environments are registered in Windows. |
3. Click the Open button.
The script file is read from file and displayed in the Variant/file column (Setting the procedure sequence).
Integrate script code
1. In the Operations section, select Edit.
The Run script window opens.
2. From the drop-down list Script environment, choose the desired entry.
3. Select the option Directly enter script code.
4. Enter the desired script code in the input field.
Notes: In your script, you can access the ongoing Visum session via the global variant Visum. You can find more information under Help > COM help. |
5. Confirm with OK.
The script code is integrated into the procedure sequence.